package com.chinasoft.yy;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class yy implements TrueWord {
    public yy() {
        wordList.add("电脑太卡了！！！！");
        wordList.add("网络也不行！！！！！");
        wordList.add("中午吃什么？？？");
    }
    List<String> wordList = new ArrayList<String>();
    Random random = new Random();

    @Override
    public String getName() {
        return "yy say:";
    }

    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
